package com.lingchou.cloud.process.api.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
@ApiModel(value = "SummaryApproveParam", description = "汇总参数类")
public class SummaryApproveParam {
    /**
     * 流程节点集合
     */
    @ApiModelProperty(value = "流程节点集合", required = true)
    @NotNull(message = "流程节点集合必传")
    @NotEmpty(message = "流程节点集合不能为空")
    @Valid
    private List<ProcessNode> processNodes;

    /**
     * 任务列表
     */
    @ApiModelProperty(value = "任务id列表",required = true)
    @NotNull(message = "任务列表必传")
    @NotEmpty(message = "任务id列表不能为空")
    @Valid
    private List<DynamicTaskParam> tasks;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人")
    @NotBlank(message = "操作人不能为空")
    private String operator;

    /**
     * 审批意见
     */
    @ApiModelProperty(value = "建议")
    private String comment;
}
